package com.hyper_yang._03_designpatterns.principles.demo4.next;

/**
 * 单一职责原则-打印文档
 */
public class DocumentPrinter {
    public void print(Document doc) {
        System.out.println("打印文档: " + doc.getContent());
    }
}
